package com.code.day16.d_lambda;

import java.util.function.Predicate;

public class TestPredicate {
    public static void main(String[] args) {

        method(s -> s.length() > 20, "hello world");
    }

    public static void method(Predicate<String> predicate, String s){
        boolean b = predicate.test(s);
        System.out.println(b);
    }
}
